<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
</head>
<body>
<div ng-app>
    <div ng-controller="firstController">
        <input type="text" ng-model="name" value="">
        <input type="text" ng-model="age" value="">
        <!--angularjs的表达式-->
        <!--{{name}}-->
        <!--{{age}}-->
        <span ng-bind="name"></span>
        <span ng-bind="age"></span>
        {{ date }}
    </div>
</div>
<div id="a">
    obj.b .....
</div>
<script>
    var obj = {
        b : 300,
        set:function (key,val) {
            obj[key]= val;
            document.querySelector('a').innerHTML = val;
        }
    }
    obj.set('b',300);
//    obj.b = 400;页面不知道，不正确
</script>


<!--<input type="text" ng-model="name" value="">-->
<script type="text/javascript" src="app/index.js"></script>
<script src="../../vendor/angular/angularjs.js" type="text/javascript"></script>
</body>
</html>